package com.geostar.constructionland.analyse.service.feignservice;

import com.geostar.constructionland.common.entity.aly.AdjustResponse;
import com.geostar.constructionland.common.entity.response.LandInfo;
import com.geostar.constructionland.common.entity.response.model.AdjustModel;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author yelll
 * @since 2020-5-29 16:36
 **/
@FeignClient(name = "constructionland-adjust")
public interface AdjustFeignClient {
    /**
     * 调用平差服务
     * @param adjustModel
     * @return 平差服务后的结果
     */
    @RequestMapping(value = "/adjust",method = RequestMethod.POST)
    public AdjustResponse<List<LandInfo>> adjustLandArea(@RequestBody AdjustModel adjustModel);
}
